﻿<%@ Page Language="C#" Theme="SkinFile" AutoEventWireup="true" CodeFile="altaUsuario.aspx.cs" Inherits="altaUsuario" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Página sin título</title>
<script language="javascript" type="text/javascript">
// <!CDATA[

function Text2_onclick() {

}

// ]]>
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: left">
    <h2>Alta Usuario</h2>
    <h3>Rellene los siguientes datos:</h3>
    
        <table>
            <tr>
                <td>Nombre
                </td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="nombre" runat="server" MaxLength="20"></asp:TextBox>*</td>
            </tr>
            <tr>
                <td>Primer apellido
                </td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="apellido1" runat="server" MaxLength="30"></asp:TextBox>*</td>
                
            </tr>
            <tr>
                <td>Segundo apellido
                </td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="apellido2" runat="server" MaxLength="30"></asp:TextBox>*</td>
                
            </tr>
            <tr>
                <td>
                    Sexo&nbsp;</td>
                <td style="width: 296px">
                    &nbsp;<asp:DropDownList ID="sexo" runat="server">
                    </asp:DropDownList>*</td>
           
            </tr>
            <tr>
                <td>
                    Ciudad&nbsp;</td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="ciudad" runat="server" Width="123px" MaxLength="30"></asp:TextBox></td>
                
            </tr>
            <tr>
                <td>
                    Correo</td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="correo" runat="server" MaxLength="20"></asp:TextBox>*</td>
                
            </tr>
            <tr>
                <td>
                    Dni</td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="dni" runat="server" MaxLength="9"></asp:TextBox>*</td>
                
            </tr>
            <tr>
                <td>Fecha de Nacimiento
                </td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="fnacimiento" runat="server" Width="96px"></asp:TextBox>*
                    &nbsp;&nbsp;
                    <asp:Label ID="Label2" runat="server" Enabled="False" Text="Ejemplo: 02/01/1983"></asp:Label></td>
                <td>   
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="fnacimiento"
                        ErrorMessage="Formato de fecha incorrecto" ValidationExpression="^([0][1-9]|[12][0-9]|3[01])(/|-)(0[1-9]|1[012])\2(\d{4})$"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td style="height: 56px">Direccion
                </td>
                <td style="width: 296px; height: 56px;">
                    &nbsp;<asp:TextBox ID="direccion" runat="server" Height="43px" Width="284px" MaxLength="30"></asp:TextBox></td>
            
            </tr>
            <tr>
                <td>Telefono
                </td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="telefono" runat="server" MaxLength="13"></asp:TextBox></td>
            
            </tr>
            <tr>
                <td>Alias
                </td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="alias" runat="server" MaxLength="10"></asp:TextBox>*</td>
            
            </tr>
            <tr>
                <td>Password
                </td>
                <td style="width: 296px">
                    &nbsp;<asp:TextBox ID="password" runat="server" TextMode="Password"></asp:TextBox>*</td>
                    <td> <asp:Button ID="Button1" runat="server" Text="Dar de alta" OnClick="Button1_Click" Width="111px" /></td>
            
            
            </tr>
            <tr>
                <td>
                </td>
                <td>*: Campos obligatorios</td>
            
            
                   
            </tr>
                <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server"></asp:Label></td>
          
                      
            </tr>
      
            
            
      </table>
    
    </div>
    </form>
</body>
</html>
